package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;



import static org.jsola.hr.example.CrmMemberExample.*;


/**
 * 成员新增权限并且分配客户DTO
 *
 * @author zdd
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "成员新增权限并且分配客户DTO")
@Data
public class CrmMemberAndCustomerAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 100, message = M_NAME_MAX)
    private String name;


    @ApiModelProperty(notes = N_JURISDICTION, example = E_JURISDICTION)
    private Integer jurisdiction;

    @ApiModelProperty(notes = N_USER_ID, example = E_USER_ID)
    @Length(max = 32, message = M_USER_ID_MAX)
    private String userId;

    @ApiModelProperty(notes = "成员ID数组")
    private String[] memberIds;

    @ApiModelProperty(notes = "成员Id")
    private String memberId;
}